from moviepy.editor import *
from animation.editor import *

'''
1.	视频水印
'''
if __name__ == '__main__':
    output_file_path = '../results/example01.mp4'
    xyyVideoClip = VideoFileClip('../videos/xyy_part.mp4')
    duration = xyyVideoClip.duration
    logoClip = ImageClip('../videos/logo108.png').set_pos(
        (40, 40))
    finalClip = CompositeVideoClip([xyyVideoClip, logoClip.set_start(2).set_end(duration - 5)])
    finalClip.write_videofile(output_file_path, fps=25, codec="libx264", audio_codec="aac")
